package com.study.day20190709;

import java.util.*;

/**
 *
 */
public class Test {
    public static void main(String[] args) {
        //Integer
        Integer i  = 6;
        Integer j = 6;
        System.out.println(i.equals(j));
        Integer m  = new Integer(6);
        System.out.println(i==m);
        //int
        int a=3;
        int b=3;
        System.out.println(a==b);
        //String
        String c="a";
        String d="a";
        System.out.println(c==d);
        System.out.println(c.equals(d));
        //list删除
        ArrayList list=new ArrayList();
        list.add(2);
        Iterator<Integer> iterator = list.iterator();
        while(iterator.hasNext()){
            Integer integer = iterator.next();
            if (integer ==2){
                iterator.remove();
            }
        }
        System.out.println(list);
        HashMap hashMap=new HashMap();
        Map map= Collections.synchronizedMap(hashMap);
    }


}
